home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Start.a < prev    next >
Text File  |  1996-05-01  |  3KB  |  145 lines

  1. ;
  2. ;    File:        Start.a
  3. ;
  4. ;    Contains:    Start Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__START__') = 'UNDEFINED' THEN
  19. __START__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24. DefStartRec                RECORD 0
  25. sdExtDevID                 ds.b    1                ; offset: $0 (0)
  26. sdPartition                 ds.b    1                ; offset: $1 (1)
  27. sdSlotNum                 ds.b    1                ; offset: $2 (2)
  28. sdSRsrcID                 ds.b    1                ; offset: $3 (3)
  29.                          ORG 0
  30. sdReserved1                 ds.b    1                ; offset: $0 (0)
  31. sdReserved2                 ds.b    1                ; offset: $1 (1)
  32. sdRefNum                 ds.w    1                ; offset: $2 (2)
  33. sizeof                     EQU *                    ; size:   $4 (4)
  34.                         ENDR
  35. ; typedef union DefStartRec *            DefStartPtr
  36.  
  37. DefVideoRec                RECORD 0
  38. sdSlot                     ds.b    1                ; offset: $0 (0)
  39. sdsResource                 ds.b    1                ; offset: $1 (1)
  40. sizeof                     EQU *                    ; size:   $2 (2)
  41.                         ENDR
  42. ; typedef struct DefVideoRec *            DefVideoPtr
  43.  
  44. DefOSRec                RECORD 0
  45. sdReserved                 ds.b    1                ; offset: $0 (0)
  46. sdOSType                 ds.b    1                ; offset: $1 (1)
  47. sizeof                     EQU *                    ; size:   $2 (2)
  48.                         ENDR
  49. ; typedef struct DefOSRec *                DefOSPtr
  50.  
  51. ;
  52. ; pascal void GetDefaultStartup(DefStartPtr paramBlock)
  53. ;
  54.     IF ¨ GENERATINGCFM THEN
  55.         ; parameters:
  56.         ;    paramBlock      => A0
  57.         _GetDefaultStartup:    OPWORD    $A07D
  58.     ELSE
  59.         IMPORT_CFM_FUNCTION GetDefaultStartup
  60.     ENDIF
  61.  
  62. ;
  63. ; pascal void SetDefaultStartup(DefStartPtr paramBlock)
  64. ;
  65.     IF ¨ GENERATINGCFM THEN
  66.         ; parameters:
  67.         ;    paramBlock      => A0
  68.         _SetDefaultStartup:    OPWORD    $A07E
  69.     ELSE
  70.         IMPORT_CFM_FUNCTION SetDefaultStartup
  71.     ENDIF
  72.  
  73. ;
  74. ; pascal void GetVideoDefault(DefVideoPtr paramBlock)
  75. ;
  76.     IF ¨ GENERATINGCFM THEN
  77.         ; parameters:
  78.         ;    paramBlock      => A0
  79.         _GetVideoDefault:    OPWORD    $A080
  80.     ELSE
  81.         IMPORT_CFM_FUNCTION GetVideoDefault
  82.     ENDIF
  83.  
  84. ;
  85. ; pascal void SetVideoDefault(DefVideoPtr paramBlock)
  86. ;
  87.     IF ¨ GENERATINGCFM THEN
  88.         ; parameters:
  89.         ;    paramBlock      => A0
  90.         _SetVideoDefault:    OPWORD    $A081
  91.     ELSE
  92.         IMPORT_CFM_FUNCTION SetVideoDefault
  93.     ENDIF
  94.  
  95. ;
  96. ; pascal void GetOSDefault(DefOSPtr paramBlock)
  97. ;
  98.     IF ¨ GENERATINGCFM THEN
  99.         ; parameters:
  100.         ;    paramBlock      => A0
  101.         _GetOSDefault:    OPWORD    $A084
  102.     ELSE
  103.         IMPORT_CFM_FUNCTION GetOSDefault
  104.     ENDIF
  105.  
  106. ;
  107. ; pascal void SetOSDefault(DefOSPtr paramBlock)
  108. ;
  109.     IF ¨ GENERATINGCFM THEN
  110.         ; parameters:
  111.         ;    paramBlock      => A0
  112.         _SetOSDefault:    OPWORD    $A083
  113.     ELSE
  114.         IMPORT_CFM_FUNCTION SetOSDefault
  115.     ENDIF
  116.  
  117. ;
  118. ; pascal void SetTimeout(short count)
  119. ;
  120.     IF ¨ GENERATINGCFM THEN
  121.         Macro
  122.         _SetTimeout
  123.             move.w              #$0001,A0
  124.             dc.w                $A07F
  125.         EndM
  126.     ELSE
  127.         IMPORT_CFM_FUNCTION SetTimeout
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal void GetTimeout(short *count)
  132. ;
  133.     IF ¨ GENERATINGCFM THEN
  134.         Macro
  135.         _GetTimeout
  136.             sub.l               A0,A0
  137.             dc.w                $A07F
  138.         EndM
  139.     ELSE
  140.         IMPORT_CFM_FUNCTION GetTimeout
  141.     ENDIF
  142.  
  143.     ENDIF ; __START__ 
  144.  
  145.